home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98a.txt / 000028_icon-group-sender _Mon Feb 2 08:27:36 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id IAA00448
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 2 Feb 1998 08:27:35 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA11176; Mon, 2 Feb 1998 08:27:35 -0700
  7. To: icon-group@optima.CS.Arizona.EDU
  8. Date: 1 Feb 1998 05:23:11 GMT
  9. From: jeffery@cs.utsa.edu (Clinton Jeffery)
  10. Message-Id: <6b10rv$76c@ringer.cs.utsa.edu>
  11. Organization: The University of Texas at San Antonio
  12. Sender: icon-group-request@optima.CS.Arizona.EDU
  13. References: <6b0sd2$dad$1@gte2.gte.net>
  14. Reply-To: jeffery@cs.utsa.edu
  15. Subject: Re: Graphical Text with Lines
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18. Content-Length: 705
  19.  
  20. MJE (evans.nospam@gte.net) wrote:
  21. : How can I find out the coordinates where particular characters in the string
  22. : exist in the window, especially since the font is not monospaced but
  23. : proportional?
  24.  
  25. The function TextWidth(s) (that's TextWidth(W, s) on window W) will give you
  26. the pixel width of any particular string that you may write (or have written)
  27. using the graphics facilities.  To identify the pixel for a specific character
  28. within a large string, you would get the pixel width of the string up to the
  29. character you are interested in.
  30.  
  31. --
  32. Clint Jeffery, jeffery@cs.utsa.edu
  33. Division of Computer Science, The University of Texas at San Antonio
  34. Research http://www.cs.utsa.edu/research/plss.html
  35.